package org.qiyu.live.account.provider.rpc;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.qiyu.live.account.interfaces.IAccountTockenRPC;
import org.qiyu.live.account.provider.service.IAccountTockenService;

/**
 * @Description: //todo
 * @Author: 张广焱
 * @Date: 2024-04-27 上午2:30
 */
@DubboService
public class AccountTokenRPCImpl implements IAccountTockenRPC {
    @Resource
    private IAccountTockenService iAccountTockenService;
    @Override
    public String createAndSaveLoginToken(Long userId) {
        return iAccountTockenService.createAndSaveLoginToken(userId);
    }

    @Override
    public Long getUserIdByToken(String token) {
        return iAccountTockenService.getUserIdByToken(token);
    }
}
